package com.xinke.query.model.query;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.OptBoolean;
import com.xinke.query.model.enums.QueryStatus;
import com.xinke.query.model.enums.QueryType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Schema(description = "任务状态前端查询表单")
@Data
public class GaoSuInfoQuery {

    @Schema(description = "查询数据类型")
    private QueryType queryType;

    @Schema(description = "任务状态")
    private QueryStatus status;

    @Schema(description = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8",lenient = OptBoolean.FALSE)
    private LocalDateTime startDate;

    @Schema(description = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8",lenient = OptBoolean.FALSE)
    private LocalDateTime endDate;
}
